package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 经销商收货地址
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2021/1/8 16:33
 * @since v1.0
 */
@Getter
public enum DistributorAddressEnum {
    //
    RECEIVER("text_1", "enum.distributorAddress.name.receiver", "receiver"),
    PHONE("text_2", "enum.distributorAddress.name.phone", "phone"),
    POSTCODE("text_3", "enum.distributorAddress.name.postcode", "postcode"),
    ADDRESS("address_1", "enum.distributorAddress.name.address", "address"),
    SET_DEFAULT("num_1", "enum.distributorAddress.name.setDefault", "setDefault"),
   ;

    /**
     * attr
     */
    private String attr;
    /**
     * 名称
     */
    private String name;

    /**
     * saasAttr
     */
    private String saasAttr;


    DistributorAddressEnum(String attr, String name, String saasAttr) {
        this.attr = attr;
        this.name = name;
        this.saasAttr = saasAttr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
